package com.rui.study.algorithm.T_2xixi;

/**
 * @program: study
 * @description:
 * @author: Yaowr
 * @create: 2019-01-28 09:10
 **/
public class Demo {

    public static void main(String[] args) {
        long start = System.nanoTime();
        int n = 0;
        for (int i = 1; i <= 1_000_000_000; i++) {
            n += 2 * (i * i);
            if (i % 100_000_000 == 0) {
                long temp = System.nanoTime();
                System.out.println((temp - start) / 1_000_000_000d + "s");
                start = temp;
            }
        }
    }
}
